package wiiusej.apptest.generalTasks;



public class SpeakerConfigurations {
	
	
	
	// 4 BIT ADPCM FEATURES	-- ADPCM CONSTANT = 6000000;
	private static final int APCM_CONFIG = 1;
			
	
	//rateValue = 2000 sampleRate = 3000hz 
	private static final byte[] apcmDefaultConfig = {0x07,(byte) 0xd0};
	
	//rateValue = 1500 sampleRate = 4000hz
	private static final byte[] apcmConfig4k = {0x05,(byte) 0xdc}; 
	
	//rateValue = 1000 sampleRate = 6000hz
	private static final byte[] apcmConfig6k = {0x03,(byte) 0xe8}; 
	
	//rateValue = 750 sampleRate = 8000hz
	private static final byte[] apcmConfig8k = {0x02,(byte) 0xee}; 
	
	//rateValue = 500 sampleRate = 12000hz
	private static final byte[] apcmConfig12k = {0x01,(byte) 0xf4}; 
	
	private static int apcmRateValueHex;
		
	
	//8 BIT PCM FEATURES -- PCM CONSTANT = 12000000;
	private static final int PCM_CONFIG = 2;	
		
	//rateValue = 8000 sampleRate = 1500 hz 
	private static final byte[] pcmDefaultConfig= {0x1f,0x40}; //1500 hz
	
	//rateValue = 4000 sampleRate = 3000 hz 
	private static final byte[] pcmConfig3k= {0x0f,(byte) 0xa0}; //3000 hz
	
	//rateValue = 2000 sampleRate = 6000 hz
	private static final byte[] pcmConfig6k = {0x07,(byte) 0xd0}; //6000 hz
	
	//rateValue = 1500 sampleRate = 8000 hz
	private static final byte[] pcmConfig8k = {0x05,(byte) 0xdc}; //8000 hz
	
	//rateValue = 1000 sampleRate = 12000 hz
	private static final byte[] pcmConfig12k = {0x03,(byte) 0xe8}; //12000 hz
	
	
	public SpeakerConfigurations(){
		
				
	}


	public static int getApcmRateValueHex() {
		return apcmRateValueHex;
	}


	public static void setApcmRateValueHex(int apcmRateValueHex) {
		SpeakerConfigurations.apcmRateValueHex = apcmRateValueHex;
	}


	public static int getApcmConfig() {
		return APCM_CONFIG;
	}


	public static byte[] getApcmdefaultconfig() {
		return apcmDefaultConfig;
	}


	public static byte[] getApcmconfig4k() {
		return apcmConfig4k;
	}


	public static byte[] getApcmconfig6k() {
		return apcmConfig6k;
	}


	public static byte[] getApcmconfig8k() {
		return apcmConfig8k;
	}


	public static byte[] getApcmconfig12k() {
		return apcmConfig12k;
	}


	public int getPcmConfig() {
		return PCM_CONFIG;
	}


	public static byte[] getPcmdefaultconfig() {
		return pcmDefaultConfig;
	}


	public static byte[] getPcmconfig3k() {
		return pcmConfig3k;
	}


	public static byte[] getPcmconfig6k() {
		return pcmConfig6k;
	}


	public static byte[] getPcmconfig8k() {
		return pcmConfig8k;
	}


	public static byte[] getPcmconfig12k() {
		return pcmConfig12k;
	}
	
	
	
	

}
